package com.hhkj.api.order.model.req;

import com.hhkj.admin.order.model.dopo.OrderItemDo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * ApiOrderItemReq
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/10/30 11:21
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ApiOrderItemReq extends OrderItemDo {

    @NotNull(message = "订单id不能为空")
    @Override
    public Long getOrderId() {
        return super.getOrderId();
    }
}
